import django_filters.rest_framework as filters
from .models import MovieDetail


class MovieDetailFilter(filters.FilterSet):
    # name = filters.CharFilter(name='name',lookup_expr='ex')
    class Meta:
        model = MovieDetail
        fields = {
            'name': ['exact', 'contains'],
            'kind_category__name': ['exact', 'contains'],
        }
